package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Answer;
import cn.wolfcode.luowowo.article.query.AnswerQuery;
import cn.wolfcode.luowowo.article.vo.AnswerSatisSortVo;

import java.util.List;

public interface AnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Answer record);

    Answer selectByPrimaryKey(Long id);

    List<Answer> selectAll();

    int updateByPrimaryKey(Answer record);

    Answer selectTop1ByQId(Long qid);

    List<Answer> selectByQId(Long qid);

    Long selectAnswerNumByUId(Long uId);

    Long GoldNumByUId(Long uId);

    List<AnswerSatisSortVo> selectTop(AnswerQuery answerQuery);

    void updateThump(Long aid);
}